import request from '../../utils/request'
// 新建字典
export function dictTypeCreate(data) {
  return request({
    url: '/dictType/create',
    method: 'post',
    data
  })
}
// 字典列表
export function getList(params) {
  return request({
    url: '/dictType/list',
    method: 'get',
    params
  })
}
// 删除字典
export function dictTypeDelete(id) {
  return request({
    url: `/dictType/remove/${id} `,
    method: 'post'
  })
}
// 查询字典
export function findDictType(id) {
  return request({
    url: `/dictType/find/${id} `,
    method: 'get'
  })
}

// 修改字典
export function updateDictType(id, data) {
  return request({
    url: `/dictType/update/${id}`,
    method: 'post',
    data
  })
}
// 修改字典状态
export function editStatus(id, data) {
  return request({
    url: `/dictType/editStatus/${id}`,
    method: 'post',
    data
  })
}
